﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<td class="firstTd">
			<div class="divfixed">
				<table cellspacing="0" cellpadding="0" >
					<tr class="firthead">
                     <td style="width:85px">
							<strong>STT</strong>
						</td>
						<td>
							<div class="Event">SK</div>
						</td>
                        <td>
							<div class="Event">Ngày tháng</div>
						</td>
					</tr>
                    <tr>
                    <td></td>
						<td>
							<div class="Thumb">
                              <a href="Search_Advanced.ascx" id="Search_Advanced"><img src="<%: Url.Content("~/Content/images/search.png") %>" alt="" height="20" /></a>
                            </div>
						</td>                        
						<td>
                        <div class="Thumb">
                            <select name="ddlNgayBan" id="ddlNgayBan" onchange = "javascript:LoadSearch('NgayThang',value)" style="width:90px">
                                <% List<Data.DBOES.RuongMuoiNha> objList1 = (List<Data.DBOES.RuongMuoiNha>)ViewData["NgayThang"];
                                   if (objList1.Count > 0)
                                   {
                                       foreach (var obj in objList1)
                                       {
                                           if (obj.NgayThang != null)
                                           {
                                    %>
                                    <option value="<%= obj.NgayThang %>"><%= ((DateTime)obj.NgayThang).ToString("dd/MM/yyyy")%></option>
                                    <%
}
                                           else
                                           { 
                                            %>
                                    <option value="<%= obj.NgayThang %>"><%= obj.NgayThang%></option>
                                    <%
                                           }
                                        }
                                   }
                                     %>
                            </select>
                                
                            
                            </div>
                        </td>
					</tr>
				</table>
			</div>
		</td>
<td>
			<div class="divHeader">
				<table cellspacing="0" cellpadding="0" >
					<tr>
						<td>
							<div class="tableHeader">Ruộng muối</div>
						</td>
						<td>
							<div class="tableHeader">Người làm</div>
						</td>
						<td>
							<div class="tableHeader">Số xe</div>
						</td>
						<td>
							<div class="tableHeader">Số lượng</div>
						</td>
                        <td>
							<div class="tableHeader">Đơn giá</div>
						</td>
                        <td>
							<div class="tableHeader">Ăn chia</div>
						</td>
                        <td>
							<div class="tableHeader">Nơi nhập</div>
						</td>
                        <td>
							<div class="tableHeader">Diễn giải</div>
						</td>
                        <td>
							<div class="tableHeader">Ghi chú</div>
						</td>						
					</tr>
                    <tr class="Search">
                    <td>
							<div class="Thumb">
                             <%: Html.DropDownList("ddlRuongMuoi", new SelectList((IEnumerable)ViewData["RuongMuoi"], "RuongMuoi", "RuongMuoi"), new { onchange = "javascript:LoadSearch('RuongMuoi',value)", style = "width:190px" })%>
                            
                                 
                            </div>
						</td>
						<td>
							<div class="Thumb">
                             <%: Html.DropDownList("ddlNguoiLam", new SelectList((IEnumerable)ViewData["NguoiLam"], "NguoiLam", "NguoiLam"), new { onchange = "javascript:LoadSearch('NguoiLam',value)", style = "width:190px" })%>   
                           </div>
						</td>
						<td>
							<div class="Thumb">
                                
                           </div>
						</td>
						<td>
							<div class="Thumb"></div>
						</td>
						<td>
							<div class="Thumb"></div>
						</td>
                        <td>
							<div class="Thumb"></div>
						</td>
                        <td>
							<div class="Thumb"><%: Html.DropDownList("ddlNoiNhap", new SelectList((IEnumerable)ViewData["NoiNhap"], "NoiNhap", "NoiNhap"), new { onchange = "javascript:LoadSearch('NoiNhap',value)", style = "width:190px" })%></div>
						</td>
                        <td>
							<div class="Thumb"></div>
						</td>
                        <td>
							<div class="Thumb"></div>
						</td>				
					</tr>
				</table>
			</div>
		</td>